package com.itzhouwei.commerce.base;

import lombok.Getter;

/**
 * @description:<h1> 业务ID 枚举类型 <h1/>
 *
 * @author：zw，微信公共号：yingshengzw
 * @date: 2021/8/28
 * @Copyright：公众号：搬砖暗夜码农 | 博客：https://itzhouwei.com - 沉淀、学习、分享、成长，让自己和他人都能有所收获！
 */
@Getter
@SuppressWarnings("all")
public enum IDTypeEnum {
    USER(1,"USER-ID"),
    ANCHOR(2,"ANCHOR-ID"),
    ORDER(3,"ORDER-ID"),
    PAY(4,"PAY-ID");

    /****
     *
     * @param code 编码
     * @param redisConfig  计数器名称  Redis-key  也叫模块的定义
     */
    IDTypeEnum(Integer code,String redisConfig){
        this.code=code;
        this.redisConfig=redisConfig;
    }

    private Integer code;

    private String redisConfig;


}
